package com.ruoyi.framework.web.service.proxy;

import com.ruoyi.common.constant.CacheConstants;
import com.ruoyi.common.constant.Constants;
import com.ruoyi.common.core.domain.model.LoginBody;
import com.ruoyi.common.core.domain.model.LoginUser;

/**
 * @author ab785
 * createTime: 2021-10-22.
 * description: 手机验证码登录流
 */
public class WechatCodeLoginFlow extends AbstractCodeLoginFlow {


    @Override
    void checkCaptcha(LoginBody loginBody) {
        String verifyKey = CacheConstants.CAPTCHA_WECHAT_CODE_KEY + loginBody.getPhone();
        checkRedisCapture(loginBody, verifyKey);
    }

    @Override
    protected void onLoginSuccess(LoginUser loginUser) {
        super.onLoginSuccess(loginUser);
        System.out.println("===》》》微信验证码登录完成");
    }
}
